package com.example.smartall.api;

import com.example.smartall.ui.UserInfoActivity;

/**
 * @Author: abbas
 * @CreateDate: 2022/2/7
 * @Description: 接口清单
 * 当前使用地址： http://124.93.196.45:10001
 * 实际使用地址由进入软件后使用本地数据拼接
 */

public class ApiConfig {
    //ip
//    public static String IP = "";
    //port
//    public static String PORT = "";
    //基本api
    public static String BASE_URL = "http://";
    ////////////////////////////////////////////////////////////////////////////////////////////////
    //头像前缀 服务器返回的完全url地址是错误的 地址需要自己拼接 查询文件的地址为 基本url加/prod-api再加上传的文件返回名
    // 详情bean类见:
    private UserInfoActivity.SuccessBean successBean = null;
    //最终加载头像采用的方案是 在上传完头像之后，获得返回的successBean类，
    //根据返回的fileName，在此地址基础上在前面加上 ApiConfig.MIDDLE_AVATER_URL ，再次更改头像信息为此地址
    //此后加载头像时只需要使用和此前相同的基础API，而不需要在 SplashActivity 当中再次拼接一个头像的基本地址
    ////////////////////////////////////////////////////////////////////////////////////////////////
    public static String BASE_AVATER = ""; //头像前缀
    //头像中...缀？
    public static String MIDDLE_AVATER_URL = "/prod-api";
    //通用api 当前位置
    public static final String IN_LOCATION = "/prod-api/api/common/gps/location";
    //文件上传
    public static final String LOAD_FILE = "/prod-api/common/upload";


    //主页轮播api
    public static final String HOME_BANNER_URL = "/prod-api/api/rotation/list?pageNum=1&pageSize=8&type=2";
    //服务类型
    public static final String SERVICE_URL = "/prod-api/api/service/list";

    //登录
    public static final String LOGIN_URL = "/prod-api/api/login";
    //注册
    public static final String REGISTER = "/prod-api/api/register";
    //用户详细信息
    public static final String USERINFO_URL = "/prod-api/api/common/user/getInfo";
    //修改用户信息
    public static final String CHANGE_USER_URL = "/prod-api/api/common/user";
    //查看用户全部订单
    public static final String ORDER = "/prod-api/api/allorder/list";
    //修改用户密码
    public static final String CHANGE_USER_PASSWORD = "/prod-api/api/common/user/resetPwd";
    //意见反馈
    public static final String FEEDBACK = "/prod-api/api/common/feedback";

    //地铁站点
    public static final String SUBWAY = "/prod-api/api/metro/list";

    //新闻类型
    public static final String NEWS_TYPE_URL = "/prod-api/press/category/list";
    //新闻列表
    public static final String NEWS_URL = "/prod-api/press/press/list";
    //新闻详情
    public static final String NEWS_DETAILS = "/prod-api/press/press/";
    //发送新闻评论
    public static final String SEND_COMMEND = "/prod-api/press/pressComment";
    //获取新闻评论
    public static final String NEWS_COMMEND = "/prod-api/press/comments/list";


    //外卖轮播
    public static final String ORDER_BANNER = "/prod-api/api/takeout/rotation/list";
    //外卖主题类型
    public static final String ORDER_THEME_TYPE = "/prod-api/api/takeout/theme/list";
    //外卖店家列表
    public static final String ORDER_LIST = "/prod-api/api/takeout/seller/list";
    //外卖 附近店家列表 支持分页
    public static final String ORDER_NEAR_LIST = "/prod-api/api/takeout/seller/near";
    //外卖 店家 详细信息 需要加id参数
    public static final String ORDER_DETAILS = "/prod-api/api/takeout/seller/";
    //外卖 店家 搜索信息
    public static final String ORDER_SEARCH_LIST = "/prod-api/api/takeout/search";

    //门诊 主页轮播 ++hospitalId
    public static final String HOSPITAL_BANNER = "/prod-api/api/hospital/banner/list";
    //门诊 医院列表 ++hospitalName
    public static final String HOSPITAL_LIST = "/prod-api/api/hospital/hospital/list";
    //门诊 医院详情 必带id参数
    public static final String HOSPITAL_DETAILS = "/prod-api/api/hospital/hospital/";
    //门诊 获取个人信息卡片
    public static final String HOSPITAL_MINE_CARD = "/prod-api/api/hospital/patient/list";
    //门诊 新增就诊人卡片
    public static final String HOSPITAL_ADD_PATIENT = "/prod-api/api/hospital/patient";
    //门诊 修改就诊人卡片 ??????和新增一样
    public static final String HOSPITAL_CHANGE_CARD = "/prod-api/api/hospital/patient";
    //门诊 查询科室分类
    public static final String HOSPITAL_CATEGORY = "/prod-api/api/hospital/category/list";
    //门诊 生成预约单 post
    public static final String HOSPITAL_REGISTER = "/prod-api/api/hospital";

    //停哪儿 查询停车场列表
    public static final String CAR_PARKING_LIST = "/prod-api/api/park/lot/list";
    //停车场详情 +id
    public static final String PARKING_DETAILS = "/prod-api/api/park/lot/";
    //历史停车列表
    public static final String PARKING_HISTORY_LIST = "/prod-api/api/park/lot/record/list";

    //找工作 所有职位查询 +参数：professionName false
    public static final String JOB_LIST = "/prod-api/api/job/profession/list";
    //找工作 查询招聘 +
    public static final String JOB_ADVERTISE = "/prod-api/api/job/post/list";
    //找工作 查询招聘详情 +id
    public static final String JOB_ADVERTISE_DETAILS = "/prod-api/api/job/post/";
    //找工作 查询公司详情 +id
    public static final String JOB_COMPANY_DETAILS = "/prod-api/api/job/company/";
    //找工作 查询投递历史列表 又是get header里面加token
    public static final String JOB_DELIVER_HISTORY = "/prod-api/api/job/deliver/list";
    //投递简历
    public static final String JOB_DELIVER = "/prod-api/api/job/deliver";
    //新增用户简历
    public static final String JOB_ADD_RESUME = "/prod-api/api/job/resume";
    //查询用户简历 又是get header加token 我去写个方法
    public static final String JOB_RESUME = "/prod-api/api/job/resume/queryResumeByUserId/";

    //查询房源列表 +
    public static final String HOUSE = "/prod-api/api/house/housing/list";
    //房源详情 +ID
    public static final String HOUSE_DETAILS = "/prod-api/api/house/housing/";

    //活动 主页轮播
    public static final String ACT_BANNER = "/prod-api/api/activity/rotation/list";
    //活动分类
    public static final String ACT_TYPE = "/prod-api/api/activity/category/list";
    //活动列表
    public static final String ACT_LIST = "/prod-api/api/activity/activity/list";
    //活动详情 +id
    public static final String ACT_DETAILS = "/prod-api/api/activity/activity/";
    //查询活动评论列表
    public static final String ACT_COMMENT = "/prod-api/api/activity/comment/list";
    //活动评论
    public static final String ACT_SEND_COMMENT = "/prod-api/api/activity/comment";
    //检查是否参与此活动
    public static final String ACT_IS_SIGN = "/prod-api/api/activity/signup/check";
    //参与活动
    public static final String ACT_SIGN = "/prod-api/api/activity/signup";
}
